import lang from "element-plus/lib/locale/lang/zh-cn";
import locale from "element-plus/lib/locale";
import {
  ElTable,
  ElTableColumn,
  ElInput,
  ElPopover,
  ElCheckbox,
  ElCheckboxGroup,
} from "element-plus";

const components = [
  ElTable,
  ElTableColumn,
  ElInput,
  ElPopover,
  ElCheckbox,
  ElCheckboxGroup,
];

export default (app) => {
  locale.use(lang);
  components.forEach((component) => app.use(component));
};
